package com.design.pattern.factory;

public class NYPizzaStore extends PizzaStore {
    public Pizza createPizza(String type) {
        if ("cheese".equals(type)) {
            return new NYCheesePizza();
        } else {
            return null;
        }
    }
}